import Cookies from 'js-cookie';

const tokenKey = 'W_TOKEN';

export function setToken(token: string) {
  Cookies.set(tokenKey, token);
}

export function getToken(): string {
  return Cookies.get(tokenKey) || '';
}

export function clearToken() {
  Cookies.remove(tokenKey);
}
